package com.hsw.cms.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Many;
import org.nutz.dao.entity.annotation.ManyMany;
import org.nutz.dao.entity.annotation.One;
import org.nutz.dao.entity.annotation.Table;

/**
 * 文章类
 * 
 * @author Administrator
 * 
 */
@Table("t_news")
public class News implements Serializable{
 
	private static final long serialVersionUID = 879047567257454110L;
	/*
	 * 数据库ID
	 */
	@Id
	private int id;
	/*
	 * 文章标题
	 */
	@Column("title")
	private String title;
	
	/*
	 * 文章内容
	 */
	@Column("content")
	private String content;
	/*
	 * 文章来源
	 */
	@Column("source")
	private String source;
	/*
	 * 文章作者
	 */
	@Column("author")
	private String author;
	/*
	 * 创建日期
	 */
	@Column("createDate")
	private Date createDate;
	/*
	 * 修改日期
	 */
	@Column("modifyDate")
	private Date modifyDate;
	/*
	 * 缩略图
	 */
	@Column("icon")
	private String icon;
	
	/*
	 * 大图
	 */
	@Column("img")
	private String img;
	
	/*
	 * 是否置顶
	 */
	@Column("top")
	private boolean top;
	/*
	 * 文章标题颜色
	 */
	@Column("article_color")
	private String color;
	/*
	 * 是否显示该文章
	 */
	@Column("status")
	private int status;
 
	/*
	 * channelid
	 */
	@Column("channelid")
	private int channelid;
	
	/*
	 * 文章是否审核
	 */
	@Column("deleted")
	private int deleted;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public boolean isTop() {
		return top;
	}

	public void setTop(boolean top) {
		this.top = top;
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public int getChannelid() {
		return channelid;
	}

	public void setChannelid(int channelid) {
		this.channelid = channelid;
	}

	public int getDeleted() {
		return deleted;
	}

	public void setDeleted(int deleted) {
		this.deleted = deleted;
	}
  
	
	
}
